﻿@model JiaBloggingSite.Core.Objects.Post
 
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
 
<div id="content">
  <div class="post">
    <div class="post-meta">
      <div class="row">
       
        <div class="post-title">
          <h1>@Html.PostLink(Model)</h1>
        </div>
         
      </div>
      <div class="row">
       
        <div class="post-category">
          <span>Category:</span> @Html.CategoryLink(Model.Category)
        </div>
         
        <div class="post-tags">
          <span>Tags:</span> @Helpers.Tags(Html, Model.Tags)
        </div>
         
        <div class="posted-date">
          @Model.PostedOn.ToConfigLocalTime()
        </div>
         
      </div>
    </div>
     
    <div class="post-body">
      @Html.Raw(Model.Description)
    </div>

    
  @if (!User.Identity.IsAuthenticated)
  {
      <div  class="post-comments">
        <h2>Comment using:</h2>
        @Html.Action("ExternalLoginsList", "Account", new { ReturnUrl = Request.RawUrl })
      </div>
  }
  else
  {
          <form id="comment"> 
          <div class="comment-body">
          

           @{Html.RenderAction("SocialNetworkPicture");}
                 
           <div class="CommentText-Wrapper">
                    <div class="CommentText" role="textbox" aria-multiline="true" style="overflow: auto; max-height: 350px;" >
                    </div>  
           </div>

           </div>
           </form>


  }     

</div>
